/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'
import RangeLineView from '@/views/accuracy/index'

const accuracyRange = [
  'two',
  'three',
  'four',
  'five',
  'six',
  'seven',
  'eight',
  'ten',
  'twelve',
  'sixteen',
  'twentyfour'
]

const chartsRouter = {
  path: '/accuracy',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Accuracy',
  meta: {
    title: 'accuracy',
    icon: 'line-chart'
  },
  children: accuracyRange.map(e => {
    return {
      path: e,
      component: RangeLineView,
      name: 'Accuracy' + e,
      meta: {
        title: e,
        noCache: true,
        groupMapKey: e.toUpperCase() + '_GROUP_MAP'
      }
    }
  })
}

export default chartsRouter
